package com.jinmdz.fmis.api.admin.model.systemmenu;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;

/**
 * 系统菜单加载数据
 *
 * @author LiCongLu
 * @date 2020-03-18 15:38
 */
@ApiModel(value = "系统菜单加载数据", description = "系统菜单加载数据")
public class SystemMenuLoadData extends BaseBean {
    /**
     * 系统菜单
     */
    @AnValidate(name = "角色信息")
    @ApiModelProperty(value = "角色信息", name = "role", position = 1)
    private SystemMenuSaveData menu;

    /**
     * 可选父系统菜单
     */
    @AnValidate(name = "可选父系统菜单")
    @ApiModelProperty(value = "可选父系统菜单", name = "menus", position = 2)
    private ArrayList<SystemMenuTreeItem> menus;

    public SystemMenuSaveData getMenu() {
        return menu;
    }

    public SystemMenuLoadData setMenu(SystemMenuSaveData menu) {
        this.menu = menu;
        return this;
    }

    public ArrayList<SystemMenuTreeItem> getMenus() {
        return menus;
    }

    public SystemMenuLoadData setMenus(ArrayList<SystemMenuTreeItem> menus) {
        this.menus = menus;
        return this;
    }
}
